package top.wangjingxin.model.article;

import lombok.Data;

import java.util.List;

@Data
public class ArticleShowVO {
    private Integer type;
    private Integer count;
    private Object data;
    public static ArticleShowVO get(List<ArticleInfoVO> list,int count){
        ArticleShowVO show = new ArticleShowVO();
        show.type = 1;
        show.count = count;
        show.data = list;
        return show;
    }
    public static ArticleShowVO get(ArticleFullVO vo){
        ArticleShowVO show = new ArticleShowVO();
        show.type = 2;
        show.data = vo;
        show.count = 1;
        return show;
    }
}
